package com.linkage.bss.crm.packagemgr.action;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * 
 * 包管理路径分发
 * @author  sgl
 * @version  [版本号, 2013-4-22]
 * @see  [相关类/方法]
 * @since  [产品/模块版本]
 */
public class PackagePathDispatcher extends HttpServlet {

	
	private static final long serialVersionUID = 2L;

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		
		String operate = request.getParameter("operate");
		String path = request.getParameter("path");
		
		request.setAttribute("operate", operate);
		request.getRequestDispatcher(path).forward(request, response);
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		doGet(request, response);
	}

}
